package Class.Advance.Polymorphism.Test.Zoo;

public class Test {
    public static void main(String[] args) {
        Animal dog = new Dog(2, "黑");
        Animal cat = new Cat(3, "白");

        Person Jack = new Person("Jack", 20);
        Jack.keepPet(dog, "磨牙棒");
        Jack.keepPet(cat, "猫罐头");
    }
}
